package com.create.builder;

/**建造者模式
 * @author lsh
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ConsructPerson consructPerson = new ConsructPerson();
		Person manPerson = consructPerson.getPerson(new ManBuilder());
		Person womenPerson = consructPerson.getPerson(new WomenBuilder());
		System.out.println(manPerson.getBody()+manPerson.getFoot()+manPerson.getHead());
		System.out.println(womenPerson.getBody()+womenPerson.getFoot()+manPerson.getHead());
	}

}
